<T:ViewBase x:Class="WPFExcelReport.TQPROBVS02"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    Background="White"  
                    Loaded="Window_Loaded"
     >
    <T:ViewBase.Resources>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:TIMES100  x:Key="X100"/>
        <ucd:TIMES10  x:Key="X10"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PreisConverter  x:Key="PreisConverter"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>  
    </T:ViewBase.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0">
        <WrapPanel>
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=QPVMANDANT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQPROBVS.QPVMANDANT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=QPVGKREGEL:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQPROBVS.QPVGKREGEL}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=QPVPRVORS:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQPROBVS.QPVPRVORS}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=QPVAENZL:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQPROBVS.QPVAENZL}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=QPVAENB:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQPROBVS.QPVAENB}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=QPVAEND:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQPROBVS.QPVAEND}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=QPVNEUB:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQPROBVS.QPVNEUB}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=QPVNEUD:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQPROBVS.QPVNEUD}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=QPVPRART:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQPROBVS.QPVPRART}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=QPVPRLG:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQPROBVS.QPVPRLG}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=QPVPRIO1:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQPROBVS.QPVPRIO1}" Width="Auto" />
            </Grid> 
        </WrapPanel>
        <WrapPanel Visibility="{Binding IsQPROBVS,Converter={StaticResource ResourceKey=bv}}">
                <ex:TBASE1></ex:TBASE1>
            </WrapPanel>
        </StackPanel>
        <DataGrid  Grid.Row="1"  VerticalAlignment="Top"  
                                   AutoGenerateColumns="False"
                                   EnableRowVirtualization="False"
                                   VerticalScrollBarVisibility="Auto"
                                   HorizontalScrollBarVisibility="Auto"
                                   HeadersVisibility="Column"     
                                   ItemsSource="{Binding vwQPROBVS}"  
                                    IsSynchronizedWithCurrentItem="True"
                                   SelectedItem="{Binding Path=dwQPROBVS, Mode=TwoWay}"
                                   x:Name="dlgVKP"  
                                   RowDetailsVisibilityMode="Visible" Grid.ColumnSpan="2" Margin="0,0.2,0.2,0"
                    >
            <DataGrid.Columns> 
                <DataGridTextColumn x:Name="QPVMANDANT"
                                    Binding="{Binding Path=QPVMANDANT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QPVMANDANT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QPVGKREGEL"
                                    Binding="{Binding Path=QPVGKREGEL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QPVGKREGEL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QPVPRVORS"
                                    Binding="{Binding Path=QPVPRVORS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QPVPRVORS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QPVAENZL"
                                    Binding="{Binding Path=QPVAENZL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QPVAENZL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QPVAENB"
                                    Binding="{Binding Path=QPVAENB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QPVAENB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QPVAEND"
                                    Binding="{Binding Path=QPVAEND, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QPVAEND}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QPVNEUB"
                                    Binding="{Binding Path=QPVNEUB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QPVNEUB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QPVNEUD"
                                    Binding="{Binding Path=QPVNEUD, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QPVNEUD}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QPVPRART"
                                    Binding="{Binding Path=QPVPRART, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QPVPRART}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QPVPRLG"
                                    Binding="{Binding Path=QPVPRLG, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QPVPRLG}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QPVPRIO1"
                                    Binding="{Binding Path=QPVPRIO1, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QPVPRIO1}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QPVPRMTR"
                                    Binding="{Binding Path=QPVPRMTR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QPVPRMTR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QPVPR1MTR"
                                    Binding="{Binding Path=QPVPR1MTR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QPVPR1MTR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QPVGSMETRGENDE"
                                    Binding="{Binding Path=QPVGSMETRGENDE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QPVGSMETRGENDE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QPVPRIO2"
                                    Binding="{Binding Path=QPVPRIO2, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QPVPRIO2}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QPVPRSHADW"
                                    Binding="{Binding Path=QPVPRSHADW, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QPVPRSHADW}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QPVPR1SHADW"
                                    Binding="{Binding Path=QPVPR1SHADW, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QPVPR1SHADW}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QPVPRIO3"
                                    Binding="{Binding Path=QPVPRIO3, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QPVPRIO3}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QPVPRPROZ"
                                    Binding="{Binding Path=QPVPRPROZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QPVPRPROZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QPVPR1PROZ"
                                    Binding="{Binding Path=QPVPR1PROZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QPVPR1PROZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QPVPRIO4"
                                    Binding="{Binding Path=QPVPRIO4, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QPVPRIO4}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QPVPRSTK"
                                    Binding="{Binding Path=QPVPRSTK, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QPVPRSTK}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QPVPR1STK"
                                    Binding="{Binding Path=QPVPR1STK, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QPVPR1STK}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QPVSTKANF"
                                    Binding="{Binding Path=QPVSTKANF, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QPVSTKANF}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QPVSTKENDE"
                                    Binding="{Binding Path=QPVSTKENDE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QPVSTKENDE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QPVPRIO5"
                                    Binding="{Binding Path=QPVPRIO5, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QPVPRIO5}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QPVPRURSTK"
                                    Binding="{Binding Path=QPVPRURSTK, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QPVPRURSTK}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QPVPR1URSTK"
                                    Binding="{Binding Path=QPVPR1URSTK, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QPVPR1URSTK}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QPVURSTKANF"
                                    Binding="{Binding Path=QPVURSTKANF, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QPVURSTKANF}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QPVURSTKENDE"
                                    Binding="{Binding Path=QPVURSTKENDE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QPVURSTKENDE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QPVFILLER"
                                    Binding="{Binding Path=QPVFILLER, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QPVFILLER}}"
                                    Width="Auto" />
            </DataGrid.Columns>
        </DataGrid  >
    </Grid>
</T:ViewBase> 
 
